package com.app.service;

import com.app.dao.UserMapper;
import com.app.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class UserServiceImpl implements UserService{
    @Resource
    public UserMapper userMapper;
    @Override
    public List<User> find() {
        return userMapper.find();
    }

    @Override
    public int regiter(User user) {
        return userMapper.regiter(user);
    }

    @Override
    public User login(String name, String password) {
        return userMapper.login(name,password);
    }

    @Override
    public User findon(String name) {
        return userMapper.findon(name);
    }
}
